<ion-view view-title="注册">
    <ion-content class="content has-header ionic-pseudo">
    	 <div class="list">
			<label class="item item-input">
				<span class="input-label ionic-lable-width">帐号</span>
				<input class="number" type="tel" placeholder="请输入手机号" ng-model='reg.phone' ng-keyup="isValidPhone()">
			</label>
			<div class="item item-input item-button-right">
				<span class="input-label ionic-lable-width">验证码</span>
				<input class="number" type="text" placeholder="请输入验证码" ng-model='reg.validateCode' >
				<button class="button button-small button-stable buttongetcode" ng-click="sendCode()" ng-disabled="fetchButton" ng-model="fetchButton">{{buttonText}}</button>
			</div>
			<label class="item item-input">
				<span class="input-label ionic-lable-width">密码</span>
				<input class="number" type="password" placeholder="请输入密码" ng-model='reg.loginPwd'>
			</label>
			<label class="item item-input">
				<span class="input-label ionic-lable-width">确认密码</span>
				<input class="number" type="password" placeholder="请输入密码" ng-model='reg.reLoginPwd'>
			</label>
			<label class="item item-input">
				<span class="input-label ionic-lable-width">邀请码</span>
				<input class="number" type="text" placeholder="推荐人邀请码(选填)" ng-model='reg.inviteCode'>
			</label>
		</div>
		<div>
            <button class="button button-full button-positive" ng-click="registe()">确认注册</button>
        </div>
	</ion-content>
</ion-view>